package cn.wolfcode.trip.base.service;

import cn.wolfcode.trip.base.domain.StrategyComment;
import cn.wolfcode.trip.base.query.CommentQueryObject;
import cn.wolfcode.trip.base.query.QueryObject;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * Copyright: Copyright (c) 2019 Super520
 * 描述：
 *
 * @package: cn.wolfcode.trip.base.service
 * @author: Patch
 * @date: 2019/5/27 13:54
 * 总结:
 */
public interface IStrategyCommentService {
    void saveOrUpdate(StrategyComment comment,String[] tags);
    /**
     * 点评高级查询
     *
     * @param qo
     * @return
     */
    PageInfo<StrategyComment> queryForApp(QueryObject qo);

    PageInfo<StrategyComment> query(QueryObject qo);

    /**
     * 更新攻略评论状态
     * @param comment
     */
    void updateState(StrategyComment comment);

    /**
     * 获取某编攻略下的某条评论
     * @param qo
     * @return
     */
    StrategyComment getByStrategyIdAndCommentId(QueryObject qo);

    /**
     * 根据攻略评论id获取单条评论详情
     * @param commentId
     * @return
     */
    StrategyComment getCommentDetail(Long commentId);

    /**
     * 查询他的点评
     * @param userId
     * @return
     */
    List<StrategyComment> listStrategyComment(QueryObject qo);

}